<extend name="Public:innerbase" />
<block name="css"></block> 
<block name="js">
<script src="{:STATICS}/artDialog/jquery.artDialog.js?skin=default"></script>
<script src="{:STATICS}/artDialog/plugins/iframeTools.js"></script>
<script type="text/javascript">
function selectall(name) {
	var checkItems=$('.cbitem');
	if ($("#check_box").attr('checked')==false) {
		$.each(checkItems, function(i,val){
			val.checked=false;
		});
	}else {
		$.each(checkItems, function(i,val){
			val.checked=true;
		});
	}
}

function showIntroDetail(id){
	art.dialog.open('{:U('Product/orderInfo',array('token'=>$token,'dining'=>$isDining))}&id='+id,{lock:false,title:'订单详情',width:700,height:420,yesText:'关闭',background: '#000',opacity: 0.87});
}

</script>
</block> 
<block name="content">
<div class="container-fluid">
	<div class="page-header wm-page-header">
		<h4>公司信息</h4>
	</div>
	<ul class="nav nav-tabs" style="margin-bottom:20px;">
		<li><a href="{:U('Company/index')}">总店信息</a></li>
		<li class="active"><a href="javascript:void(0)">分店信息</a></li>
	</ul>
	<table class="table wm-table-bordered table-stripped">
		<thead>
		<tr>
		<th class="select" style="display:none"><input type="checkbox" value="" id="check_box" onclick="selectall('id[]');"></th>
		<th width="70">名称</th>
		<th width="80">电话</th>
		<th width="160">地址</th>
		<th width="150" class="norightborder">操作</th>
		</tr>
		</thead>
		<tbody>
		<tr></tr>
		<volist name="branches" id="c"> 
		<tr>
		<td style="display:none"><input type="checkbox" value="{$o.id}" class="cbitem" name="id_{$i}"></td>
		<td>{$c.name}</td>
		<td>{$c.tel}</td>
		<td>{$c.address}</td>
		<td>
			<a class="btn btn-xs btn-primary" href="{:U('Company/index',array('token'=>$token,'id'=>$c['id'],'isBranch'=>1))}">修改</a>
			<a class="btn btn-xs btn-danger" href="javascript:drop_confirm('您确定要删除吗?', '{:U('Company/delete',array('token'=>$token,'id'=>$c['id'],'isBranch'=>1))}');">删除</a>
		</td>
		</tr>
		</volist>
		</tbody>
	</table>
	<div>{$page}</div>
</div>
</block>